package com.atguigu;

/**
 * 运算符之三：比较运算符
 *     ==  !=  >  <  >=   <=   instanceof
 *
 *     1.结论：比较运算符的结果是boolean类型
 *     2.区分 == 和 =
 *
 *
 * @author : leimingchao
 * @date Date : 2021年07月09日 1:25
 */
public class CompareTest {


    public static void main(String[] args) {
        int i = 10;
        int j = 20;
        //false
        System.out.println(i == j);
        //20
        System.out.println(i = j);
        System.out.println("***************************");
        boolean b1 = true;
        boolean b2 = false;
        //false
        System.out.println(b2 == b1);
        //true
        System.out.println(b2 = b1);
    }
}
